home *** CD-ROM | disk | FTP | other *** search
/ The Mac 13 / the-mac-13.iso / Shareware City / Demos / TextPak Demo / Text Items / Hot Spot Text < prev    next >
Encoding:
Text File  |  1995-03-02  |  1.1 KB  |  4 lines  |  [TEXT/MPS ]

  1. {Heading 1}Hot Spots, Glossaries and Hyperlinks
  2. {Body Text}TextPak contains full support for hyperlinks from text. Any text style can be marked as a hyperlink, in which case any text rendered using that style can be clicked on. In this demo, the {In Glossary}In Glossary{Body Text} style is an example. When you click on any such text the hyperlink is activated. In this demo a glossary box pops-up with the relevant text. It could just as easily contain images, movies or anything else you wish to code.
  3. {Body Text}This particular behaviour is built-in to the TextPak_Glossary class. In this demo a database of glossary defintions is read into memory when the demo is first run. When you click on a highlit word, the system looks up that word in the database and displays the associated text file in the pop-up box. The appeareance, size and position of the box are defined in the code, with sensible default values supplied.
  4. {Body Text}But glossaries are just one example of the power of TextPak hyperlinks: you can attach any method you wish to a hyperlink. This {In Glossary}trigger{Body Text} word is a hyperlink that takes you to the contact page of this demo.